import { getAction, postAction } from '@/api/manage'

// 系统配置域列表
const list = (params) => getAction('/admin/sysConfigDomain/page', params)
// 获取系统配置域详情
const detail = (params) => getAction(`/admin/sysConfigDomain/detail/${params}`)
// 删除系统配置域
const del = (params) => postAction(`/admin/sysConfigDomain/delete/${params}`)
// 批量删除系统配置域
const batchDel = (params) => postAction(`/admin/sysConfigDomain/batchDel`, params)
// 新增系统配置域
const create = (params) => postAction('/admin/sysConfigDomain/create', params)
// 编辑系统配置域
const edit = (params) => postAction('/admin/sysConfigDomain/update', params)
// 获取全局系统配置
const globalAll = (params) => getAction('/admin/sysConfigDomain/global/all', params)
// 获取系统配置
const sysAll = (params) => getAction('/admin/sysConfigDomain/system/all', params)

export {
  list,
  detail,
  del,
  batchDel,
  create,
  edit,
  globalAll,
  sysAll
}
